package com.classes;

import org.junit.Test;

import java.lang.reflect.Field;

public class FieldsTest {
    @Test
    public void test(){
        Class<User> clazz = User.class;
        Field[] declaredFields = clazz.getDeclaredFields();
        for (int i = 0; i < declaredFields.length; i++) {
            System.out.println(declaredFields[i]);
        }
        System.out.println("======================");
        Field[] fields = clazz.getFields();
        for (Field field : fields) {
            System.out.println(field);
        }



    }
}
